package com.zt.ztzx.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zt.ztzx.model.dto.system.SysRoleDto;
import com.zt.ztzx.model.entity.system.SysRole;
import com.zt.ztzx.model.vo.common.Result;

import java.util.List;

/**
* @author 86186
* @description 针对表【sys_role(角色)】的数据库操作Service
* @createDate 2024-08-20 14:21:16
*/
public interface SysRoleService extends IService<SysRole> {

    Result<Page<SysRole>> getPageData(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    Result add(SysRole sysRole);

    Result removeData(Long id);

    Result updateData(SysRole sysRole);

    //获取所有角色
    Result<List<SysRole>> findAll();
}
